package service;

import dao.RoleDao;
import dao.UserDao;

public class TestService {
	private UserDao userdao;
	private RoleDao roledao;
	public void setUserdao(UserDao userdao) {
		this.userdao = userdao;
	}
	public void setRoledao(RoleDao roledao) {
		this.roledao = roledao;
	}

	public boolean update(){
	
		boolean flag=false;
		try {
			
			this.userdao.update_1();
			this.roledao.update_2();
			flag=true;
		} catch (Exception e) {
			e.printStackTrace();
			flag=false;
			throw new RuntimeException(e);
		}
		
		return flag;	
	}
}
